Getlastsession(kdevt dev, struct cdrommultisession*msinfo)

This function should implement the old corresponding ioctl (). For device dev, the start of the last session of the current disc should be returned in the pointer argument msinfo. Note that routines in cdrom.c have sanitized this argument: its requested format will always be of the type CDROMLBA (linear block addressing mode), whatever the calling software requested. But sanitization goes even further: the low-level implementation may return the requested information in CDROMMSF format if it wishes so (setting the msinfoaddrformat field appropriately, of course) and the routines in cdrom.c will make the transform if necessary. The return value is 0 upon success.